package tom.client;

import java.util.List;
import java.util.Date;
import java.util.Map;

import tom.shared.AppUser;
import tom.shared.Company;
import tom.shared.LookupRecord;

import com.google.gwt.user.client.rpc.RemoteService;

public interface Service extends RemoteService {

	public Date getDeployDate();

	public long getServerTime();

	public AppUser login(String user, String password);
	
	public Integer verify(String pgmId, String user, String password);

	public void logout();

	public void setSessionVar(String var, String value);
	
	public String getSessVar(String var);

	public String[][] getPermissionForm();

	public String[][] getWorkingCompany();

	public Company getCompany();

	public String fillReport(String jasperFile, Map<String, Object> parameters);

	public List<LookupRecord> lookupList(String lkFieldName, String lkFieldValue);
}
